package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.dto.WarehouseSelectDto;
import com.scs.application.modules.base.entity.Warehouse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Service
 * </p>
 */

public interface WarehouseService extends IBaseService<Warehouse> {
    /**
     * @Description：设置科室或者用户仓库权限的数据源
     */
    List<Warehouse> getListForSetWarehouse(String setTypeField,String id);

    Page<WarehouseSelectDto> pageForSelect(QueryContext context, Map<String, Object> userParam);

    Warehouse getApplyWarehouseByWarehouseId(String deptId);

    //将对没有默认仓库的科室创建相关仓库并进行绑定
    String creatByDept(String deptId);
}
